<div class="eject_con">
<div id="warning"></div>
<?php if ($output['package']) {?>
	<pre hidden><?php print_r($output['order']) ?></pre>
	<form id="changeform" method="post" action="index.php?control=store_deliver&op=resetDeliver&inajax=1">
		<input type="hidden" name="form_submit" value="ok" />
		<input type="hidden" name="oid" value="<?php echo $output['package']['oid']; ?>" />
		<input type="hidden" name="pid" value="<?php echo $output['package']['pid']; ?>" />
		<input type="hidden" name="old_expid" value="<?php echo $output['package']['exp_id']; ?>" />
		<input type="hidden" name="old_expcode" value="<?php echo $output['package']['exp_code']; ?>" />
		<dl>
			<dt>快递公司：</dt>
			<dd>
				<select name="exp_id" id="exp_id">
				<?php foreach ($output['express'] as $express): ?>
					<option value="<?= $express['id'] ?>" <?php if ($output['package']['exp_id'] == $express['id']) echo "selected"; ?>><?= $express['e_name'] ?></option>
				<?php endforeach ?>
				</select>
			</dd>
		</dl>
		<dl class="bottom">
			<dt>快递单号：</dt>
			<dd style="text-align: left;">
				<input type="text" style="width: 90%"  name="exp_code" value="<?php echo $output['package']['exp_code'];?>" />
			</dd>
		</dl>
		<dl class="bottom">
			<dt>&nbsp;</dt>
			<dd>
				<input type="submit" class="submit" id="confirm_button" value="<?php echo $lang['nc_ok'];?>" />
			</dd>
		</dl>
	</form>
<?php } else { ?>
<p style="line-height:80px;text-align:center">该订单并不存在，请检查参数是否正确!</p>
<?php } ?>
</div>
<script type="text/javascript">
$(function(){
    $('#changeform').validate({
     	submitHandler:function(form){
    		ajaxpost('changeform', '', '', 'onerror'); 
    	}
	});
});
</script>